home *** CD-ROM | disk | FTP | other *** search
- Path: gail.ripco.com!mambuhl
- From: mambuhl@ripco.com (Martin Ambuhl)
- Newsgroups: comp.lang.c
- Subject: #define, question from a
- Date: 4 Feb 1996 05:37:40 GMT
- Organization: Ripco Communications, Inc.
- Message-ID: <4f1gn4$kv5@gail.ripco.com>
- NNTP-Posting-Host: golden.ripco.com
-
- ma@maths.uwa.edu.au (ma) in <ma-010296161301@mac147.maths.uwa.edu.au>
- asked, basically whether he could create a multi-line macro.
-
- The answer, clearly, is to use the \ line continuation
- (The C++ // comments, which are syntax errors in comp.lang.c are replaced.)
-
- #define fiveLines printf("%d, ",j); /* macro should include this line */ \
- /* some more lines */ \
- printf("%d",k); /* macro should include this last line */
-
-
- --
- * Martin Ambuhl net: mambuhl@ripco.com
- * Chicago, IL (USA)
-